import request from '../http'
// 测试get、post请求
function testGetHttp (cancelToken?: any) {
    return request({
        url: '/api/getUserList',
        method: 'get',
        cancelToken
    })
}

function testPostHttp (data: any, cancelToken?: any) {
    return request({
        url: '/api/update',
        method: 'post',
        data,
        cancelToken
    })
}

// mock数据
function testMockHttp (controller: AbortController) {
    return request({
        url: '/api/FTLUser/getBigData',
        method: 'get',
        signal: controller.signal
    })
}

export default {
    testGetHttp,
    testPostHttp,
    testMockHttp
}